TARGET = $(LIB)libconfig.a
DEBUG_TARGET = $(LIB)libdebug_config.a

#All
.PHONY: all
all: $(TARGET)
$(TARGET): $(TARGET)(profile_parser.o profile.o)
profile_parser.o: profile_parser.c profile_parser.h
	$(CC) -c -I$(UTILITY_SRC) -I $(INCLUDE) profile_parser.c 
profile.o: profile.c profile.h
	$(CC) -c profile.c 

#Debug
.PHONY: debug
debug: $(DEBUG_TARGET)
$(DEBUG_TARGET): $(DEBUG_TARGET)(debug_profile_parser.o debug_profile.o)
debug_profile_parser.o: profile_parser.c profile_parser.h
	$(CC) -c $(DEBUG_FLAGS) -o debug_profile_parser.o \
			-I$(UTILITY_SRC) -I $(INCLUDE) profile_parser.c 
debug_profile.o: profile.c profile.h
	$(CC) -c $(DEBUG_FLAGS) -o debug_profile.o profile.c 

#Clean
.PHONY: clean
clean:
	-rm *.o $(TARGET) $(DEBUG_TARGET)
